{if !$core->session->isLoggedIn()}{php}die("You must be logged in");{/php}{/if}
{if $smarty.session.userlevel >= $smarty.const.USER_MODERATOR}
<div class="page_header">Delete news</div>
{if !$smarty.get.confirm}
<a href="./?n=news/delete&id={$smarty.get.id}&confirm=1">Confirm Deletion?</a>
{else}
{if $core->database->news_delete($smarty.get.id) == 1}
News item successfully deleted
{else}
News deletion failed.
{/if}
{/if}
{else}
You do not have permission
{/if}